<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="Couch,pl.vane.as3relax.Couch,allOrNothing,url,changes,compact,delete_,get_,makeRequest,post,put,replicate,uuids" name="keywords">
<title>pl.vane.as3relax.Couch</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'Couch - AS3Relax Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">AS3Relax Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?pl/vane/as3relax/Couch.html&amp;pl/vane/as3relax/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;Couch</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class Couch"); titleBar_setSubNav(false,true,false,false,true,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">pl.vane.as3relax</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class Couch</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">Couch <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Implements</td><td><a href="ICouch.html">ICouch</a></td>
</tr>
</table>
<p></p>
  Couch Class is wrapper for CouchDB API.
  
  <p></p>
<p>
<span class="classHeaderTableLabel">See also</span>
</p>
<div class="seeAlso">
<a href="http://wiki.apache.org/couchdb/Reference" target="mm_external">http://wiki.apache.org/couchdb/Reference</a>
</div>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#allOrNothing">allOrNothing</a> : Boolean<div class="summaryTableDescription">
   Sets and returns HTTP Bulk Document API sending property.</div>
</td><td class="summaryTableOwnerCol">Couch</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#url">url</a> : String<div class="summaryTableDescription">
   Sets and returns url to the CouchDB API.</div>
</td><td class="summaryTableOwnerCol">Couch</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#Couch()">Couch</a>(url:String)</div>
<div class="summaryTableDescription">
   Constructor.</div>
</td><td class="summaryTableOwnerCol">Couch</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#changes()">changes</a>(db:String, since:uint = 0, feed:String = "normal"):void</div>
<div class="summaryTableDescription">
   Get changes feed from the database
   
   </div>
</td><td class="summaryTableOwnerCol">Couch</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#compact()">compact</a>(db:String, designName:String = null, viewCleanup:Boolean = false):void</div>
<div class="summaryTableDescription">
   Compact database.</div>
</td><td class="summaryTableOwnerCol">Couch</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#delete_()">delete_</a>(docs:String, target:String):void</div>
<div class="summaryTableDescription">
   DELETE request to the database.</div>
</td><td class="summaryTableOwnerCol">Couch</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#get_()">get_</a>(docs:String = null, target:String = ""):void</div>
<div class="summaryTableDescription">
   GET request to the database.</div>
</td><td class="summaryTableOwnerCol">Couch</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#makeRequest()">makeRequest</a>(request:URLRequest, responder:<a href="CouchResponder.html">CouchResponder</a>):void</div>
<div class="summaryTableDescription">
   Makes request to the database can be overriden to handle request for yourself.</div>
</td><td class="summaryTableOwnerCol">Couch</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#post()">post</a>(docs:String = null, target:String = ""):void</div>
<div class="summaryTableDescription">
   POST request to the database.</div>
</td><td class="summaryTableOwnerCol">Couch</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#put()">put</a>(docs:String, target:String):void</div>
<div class="summaryTableDescription">
   PUT request to the database.</div>
</td><td class="summaryTableOwnerCol">Couch</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#replicate()">replicate</a>(db:String, target:String):void</div>
<div class="summaryTableDescription">
   Replicate database to the given source
   
   </div>
</td><td class="summaryTableOwnerCol">Couch</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#uuids()">uuids</a>(count:int = 100):void</div>
<div class="summaryTableDescription">
   Gets CouchDB document UUID from the database for id string.</div>
</td><td class="summaryTableOwnerCol">Couch</td>
</tr>
</table>
</div>
<a name="eventSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Events</div>
<table id="summaryTableEvent" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Event</th><th>Summary</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:couchevent.data">couchevent.data</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Dispatched when data is returned from the CouchDB API,
  
  </td><td class="summaryTableOwnerCol">Couch</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:couchevent.fault">couchevent.fault</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">
  Dispatched when data is returned from the CouchDB API,
  
  </td><td class="summaryTableOwnerCol">Couch</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="allOrNothing"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">allOrNothing</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>allOrNothing:Boolean</code>&nbsp;&nbsp;[read-write]<p>
   Sets and returns HTTP Bulk Document API sending property.
   
   </p><p>Whenever using _bulk_docs you can use allOrNothing 
   property to perform action to all docs</p>
   
   <p>The default value is <code>true</code>.</p>
<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get allOrNothing():Boolean</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set allOrNothing(value:Boolean):void</code>
<br>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API" target="mm_external">http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API</a>
</div>
</div>
<a name="url"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">url</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>url:String</code>&nbsp;&nbsp;[read-write]<p>
   Sets and returns url to the CouchDB API.
   
   </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get url():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set url(value:String):void</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="Couch()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">Couch</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function Couch(url:String)</code><p>
   Constructor.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">url</span>:String</code> &mdash; Address to the CouchDB API ex. http://localhost:5984 
   
   </td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="changes()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">changes</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function changes(db:String, since:uint = 0, feed:String = "normal"):void</code><p>
   Get changes feed from the database
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">db</span>:String</code> &mdash; - database to get the changes feed
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">since</span>:uint</code> (default = <code>0</code>)<code></code> &mdash; - since wtat change get the feed default 0
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">feed</span>:String</code> (default = "<code>normal</code>")<code></code> &mdash; - type of feed normal|longpoll|continuous default <code>normal</code>
   
   </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../as3relax/CouchFeedType.html" target="">pl.vane.as3relax.CouchFeedType</a>
<br>
<a href="http://wiki.apache.org/couchdb/HTTP_database_API" target="mm_external">http://wiki.apache.org/couchdb/HTTP_database_API</a>
</div>
</div>
<a name="compact()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">compact</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function compact(db:String, designName:String = null, viewCleanup:Boolean = false):void</code><p>
   Compact database.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">db</span>:String</code> &mdash; database to be compacted
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">designName</span>:String</code> (default = <code>null</code>)<code></code> &mdash; - This compacts the views from the current version of the design document, 
   but old versions (from when the design document had a different hash) remain. default<code>null</code>
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">viewCleanup</span>:Boolean</code> (default = <code>false</code>)<code></code> &mdash; - removes old views from disk default <code>false</code>
   
   </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://wiki.apache.org/couchdb/Compaction" target="mm_external">http://wiki.apache.org/couchdb/Compaction</a>
</div>
</div>
<a name="delete_()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">delete_</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function delete_(docs:String, target:String):void</code><p>
   DELETE request to the database.
   
   </p><p>It takes request to the given url and database specified in target property
   using bulk docs api so it depends on allOrNothing property.</p>
   
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">docs</span>:String</code> &mdash; Document JSON that you want send to the database
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">target</span>:String</code> &mdash; Address to the service you want to send the request
   
   </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API" target="mm_external">http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API</a>
</div>
</div>
<a name="get_()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">get_</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function get_(docs:String = null, target:String = ""):void</code><p>
   GET request to the database.
   
   </p><p>Whenever you want to send the POST request to the service use
   this method.</p>
   
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">docs</span>:String</code> (default = <code>null</code>)<code></code> &mdash; (optional)Documents in JSON format you want to send to the service. 
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">target</span>:String</code> (default = "<code></code>")<code></code> &mdash; Address to the service you want to send the request
   
   </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://wiki.apache.org/couchdb/HTTP_REST_API" target="mm_external">http://wiki.apache.org/couchdb/HTTP_REST_API</a>
</div>
</div>
<a name="makeRequest()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">makeRequest</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function makeRequest(request:URLRequest, responder:<a href="CouchResponder.html">CouchResponder</a>):void</code><p>
   Makes request to the database can be overriden to handle request for yourself.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">request</span>:URLRequest</code> &mdash; URLRequest to the database
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">responder</span>:<a href="CouchResponder.html">CouchResponder</a></code> &mdash; CouchResponder that handle the service response
   
   </td>
</tr>
</table>
</div>
<a name="post()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">post</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function post(docs:String = null, target:String = ""):void</code><p>
   POST request to the database.
   
   </p><p>Whenever you want to send the POST request to the service use
   this method.</p>
   
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">docs</span>:String</code> (default = <code>null</code>)<code></code> &mdash; (optional)Documents in JSON format you want to send to the service. 
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">target</span>:String</code> (default = "<code></code>")<code></code> &mdash; Address to the service you want to send the request 
      </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://wiki.apache.org/couchdb/HTTP_REST_API" target="mm_external">http://wiki.apache.org/couchdb/HTTP_REST_API</a>
</div>
</div>
<a name="put()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">put</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function put(docs:String, target:String):void</code><p>
   PUT request to the database.
   
   </p><p>Whenever you want to send the POST request to the service use
   this method.</p>
   
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">docs</span>:String</code> &mdash; Documents in JSON format you want to send to the service. 
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">target</span>:String</code> &mdash; Address to the service you want to send the request
   
   </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API" target="mm_external">http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API</a>
</div>
</div>
<a name="replicate()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">replicate</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function replicate(db:String, target:String):void</code><p>
   Replicate database to the given source
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">db</span>:String</code> &mdash;  - database to be replicated
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">target</span>:String</code> &mdash; - full address to the database that you want replicate to
   
   </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://wiki.apache.org/couchdb/Replication" target="mm_external">http://wiki.apache.org/couchdb/Replication</a>
</div>
</div>
<a name="uuids()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">uuids</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function uuids(count:int = 100):void</code><p>
   Gets CouchDB document UUID from the database for id string.
   
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">count</span>:int</code> (default = <code>100</code>)<code></code> &mdash; Number of uuids to get from the CouchDB API default is 100 
   </td>
</tr>
</table>
</div>
<div class="detailSectionHeader">Event detail</div>
<a name="event:couchevent.data"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">couchevent.data</td><td class="detailHeaderType">event&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href="../as3relax/CouchEvent.html"><code>pl.vane.as3relax.CouchEvent</code></a>
<br>
<span class="label">CouchEvent.type property = </span><a href="../as3relax/CouchEvent.html#DATA"><code>pl.vane.as3relax.CouchEvent.DATA</code></a>
<br><p>
  Dispatched when data is returned from the CouchDB API,
  
  </p><p>
   The <code>CouchEvent.DATA</code> constant defines the value of the
   <code>type</code> property of the event object for an <code>couchevent.data</code> event.
      </p><p>The action property of the event object have the following values:</p>
   <table class="innertable">
      <tr><th>Property</th><th>Value</th></tr>
      <tr><td><code>action</code></td><td>changes | compact | delete | get | post  | put | replicate | uuid</td></tr>
   </table>
      </div>
<a name="event:couchevent.fault"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">couchevent.fault</td><td class="detailHeaderType">event&nbsp;</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<span class="label">Event object type: </span><a href="../as3relax/CouchEvent.html"><code>pl.vane.as3relax.CouchEvent</code></a>
<br>
<span class="label">CouchEvent.type property = </span><a href="../as3relax/CouchEvent.html#DATA"><code>pl.vane.as3relax.CouchEvent.DATA</code></a>
<br><p>
  Dispatched when data is returned from the CouchDB API,
  
  </p><p>
   The <code>CouchEvent.DATA</code> constant defines the value of the
   <code>type</code> property of the event object for an <code>couchevent.fault</code> event.
      </p><p>The action property of the event object have the following values:</p>
   <table class="innertable">
      <table class="innertable">
      <tr><th>Property</th><th>Value</th></tr>
      <tr><td><code>action</code></td><td>changes | compact | delete | get | post  | put | replicate | uuid</td></tr>
   </table>
      </div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">http://code.google.com/p/as3relax/ | http://vane.pl</center>
</div>
</body>
</html>
<!--http://code.google.com/p/as3relax/ | http://vane.pl-->
